/* 学习目标：掌握枚举的种类  */
// 1. 数字枚举： 默认从0开始自增
// 2. 文字枚举
var OrderState;
(function (OrderState) {
    OrderState[OrderState["DaiFuKuan"] = 10] = "DaiFuKuan";
    OrderState[OrderState["YiFuKuan"] = 11] = "YiFuKuan";
    OrderState[OrderState["DaiFaHuo"] = 12] = "DaiFaHuo";
    OrderState[OrderState["YiFaHuo"] = 13] = "YiFaHuo";
})(OrderState || (OrderState = {}));
// 字符串枚举
var Direction;
(function (Direction) {
    Direction["Up"] = "xxx";
    Direction["Down"] = "yyy";
    Direction["Left"] = "LEFT";
    Direction["Right"] = "RIGHT";
})(Direction || (Direction = {}));
function fn(state) {
    console.log('state  ----->  ', state);
}
// fn(OrderState.DaiFuKuan)
// fn(OrderState.YiFuKuan)
// fn(OrderState.DaiFaHuo)
// fn(OrderState.YiFaHuo)
function fn2(d) {
    console.log('d  ----->  ', d);
}
fn2(Direction.Down);
fn2(Direction.Up);
fn2(Direction.Left);
fn2(Direction.Right);
